/*--------------------------------------------------------------------------------------------------
Yatak Operation System Project Copyright 2012-2013
Author : Ilya Churaev
Started : 4 Mar 2013		Updated : 4 Mar 2013
File Name : udp.h			Purpose : User Datagram Protocol Interface.
--------------------------------------------------------------------------------------------------*/
#ifndef _YATAK_UDP_H
#define _YATAK_UDP_H

#ifdef __cplusplus
extern "C" {
#endif
struct s_udphdr
{
  unsigned short	source;
  unsigned short	dest;
  unsigned short	len;
  unsigned short	check;
};

//int udp_rcv(struct s_net_buff *buff, struct s_net_device *dev);
/* computes a partial checksum, e.g. for TCP/UDP fragments*/
unsigned int csum_partial(const unsigned char * buff, int len, unsigned int sum);

#ifdef __cplusplus
}
#endif

#endif